<template>
  <div id="app">
    <!-- <img src="./assets/logo.png"> -->
    <!-- <div v-if="!network">
         <h3>我没网了   因为断网所以以下没有内容</h3>
         <div @click="onRefresh">刷新</div>
    </div> -->
    <router-view >
    </router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      network : false
    }
  },
  methods:{
      // 通过跳转一个空页面再返回的方式来实现刷新当前页面数据的目的
      onRefresh () {
          this.$router.replace('/refresh')
      },
      asd() {
        this.$store.commit('show1')
      },
  }
}
</script>

<style lang='scss'>
@import "./assets/css/common/reset.css";
@import "./assets/css/common/common.css";
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}
</style>
